#coding=utf-8
"""
===========================
Author:李灵娜
Time:2023/3/24 10:12
website:https://duoceshi.net
===========================
"""
import sys
sys.path.append('..')
from configparser import ConfigParser
from config.config import *
import os

class Read_Ini(ConfigParser):
    def __init__(self,filename):
        super(Read_Ini,self).__init__()
        self.read(filename)

    def read_data_ini(self,section=None,option=None):
        value = self.get(section,option)
        return value
file = os.path.join(data_path,'data.ini')
# print(file)
read = Read_Ini(file)
url = read.read_data_ini("test_data","url")
print(url)
username1 = read.read_data_ini('test_data','username')
print(username1)
pwd1 = read.read_data_ini("test_data",'pwd')
print(pwd1)


